package com.yilin.tms.user.service;

import com.yilin.tms.core.application.PageData;
import com.yilin.tms.core.entity.user.account.AdvanceMoney;
import com.yilin.tms.core.entity.truck.TruckVehicle;
import com.yilin.tms.core.entity.user.account.Account;

public interface IAdvanceMoneyService {

    //添加或者修改支出记录
    void  saveOrUpdateAdvanceMoneySubtract(Account account, AdvanceMoney advanceMoney, TruckVehicle truckVehicle);

    //添加或者收入

    void  saveOrUpdateAdvanceMoneyAdd(Account loginAccount, String accountId, AdvanceMoney advanceMoney, TruckVehicle truckVehicle);

    //审核
    void  auditingAdvanceMoney(Account account, AdvanceMoney advanceMoney);

    //根据ID查询
    AdvanceMoney  getAdvanceMoneyById(String id);

    PageData<AdvanceMoney> getAdvanceMoneyPage(Account loginUser, AdvanceMoney query, Integer start, Integer limit);
}
